package com.czd.support.model;

import java.util.Date;

import org.apache.ibatis.type.Alias;

import com.czd.base.model.Page;

/**
 * 新闻实体类
 * 
 * @author java
 *
 */
@Alias("news")
public class News extends Page {
	private static final long serialVersionUID = 7890527847574245329L;
	/**
	 * 主键
	 */
    private int id;
    /**
     * 标题
     */
    private String title;
    /**
     * 新闻主要图片
     */
    private String attachUrl;
    /**
     * 新闻分类
     */
    private String category;
    /**
     * 创建人
     */
    private int createUser;
    /**
     * 创建时间 
     */
    private Date createTime;
    /**
     * 修改人
     */
    private int updateUser;
    /**
     * 修改时间
     */
    private Date updateTime;
    /**
     * 总点击量
     */
    private Long totalHit;
    /**
     * 最近七天点击量
     */
    private Long Hit;
    /**
     * 新闻主体
     */
    private String content;
    /**
     * 网址来源
     */
    private String pageUrl;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAttachUrl() {
		return attachUrl;
	}

	public void setAttachUrl(String attachUrl) {
		this.attachUrl = attachUrl;
	}

	
	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public int getCreateUser() {
		return createUser;
	}

	public void setCreateUser(int createUser) {
		this.createUser = createUser;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(int updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Long getTotalHit() {
		return totalHit;
	}

	public void setTotalHit(Long totalHit) {
		this.totalHit = totalHit;
	}

	public Long getHit() {
		return Hit;
	}

	public void setHit(Long hit) {
		Hit = hit;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public String getPageUrl() {
		return pageUrl;
	}

	public void setPageUrl(String pageUrl) {
		this.pageUrl = pageUrl;
	}

	@Override
	public String toString() {
		return "News [id=" + id + ", title=" + title + ", attachUrl="
				+ attachUrl + ", category=" + category + ", createUser="
				+ createUser + ", createTime=" + createTime + ", updateUser="
				+ updateUser + ", updateTime=" + updateTime + ", totalHit="
				+ totalHit + ", Hit=" + Hit + ", content=" + content
				+ ", pageUrl=" + pageUrl + "]";
	}
}